package com.ecode.ecny.test;

import com.ecode.annotation.ErrorCode;
import com.ecode.annotation.enums.CodeDataFromEnum;
import com.ecode.annotation.enums.CodeDataTypeEnum;

/**
 * @ClassName ErrorException
 * @Author mjlft
 * @Date 2021/9/25 9:59
 * @Version 1.0
 * @Description 异常错误码
 */
@ErrorCode(
        dataType = CodeDataTypeEnum.JSON,
        dataFROM = CodeDataFromEnum.MYSQL,
        mysqlUrl = "jdbc:mysql://xxx:3306/sql_Test",
        mysqlUserName = "xxx",
        mysqlUserPass = "xxx",
        mysqlTableName = "code"
)
public enum ErrorException {
    DEFAULT_ERROR_CODE("DEFAULT_ERROR_CODE", "默认错误");

    private String code;
    private String msg;

    ErrorException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
